<?php

require_once "../db/${GLOBALS['__DBTYPE']}/get/user.php";

require_once '../util/user.php';

function handle($post,$data) {

  if( is_string($post['user']) && is_string($post['pass']) ) {
    if( !login($post['user'],$post['pass']) ) 
      echo 'BREAKAGE';
  }

  // XXX redirect to previous logged in page.
  sendback();
}



?>
